#include "Camera.h"

using namespace OBR;

Camera::Camera(std::string cuda_source_path) : ProgramEntry(cuda_source_path)
{
}

Camera::~Camera()
{
}

void Camera::setProgram(std::shared_ptr<CudaProgram> prog)
{
    this->camera_program_group = prog;
}

std::shared_ptr<CudaProgram> Camera::getProgram()
{
    return this->camera_program_group;
}

void Camera::linkMedium(VirtualProgramManager &mediums)
{
    if (this->medium_idx != -1)
    {
        this->med_id = mediums[this->medium_idx]->program_id;
        this->med_instance_id = mediums[this->medium_idx]->program_instance_id;
    }
}